package com.nwpu.coursesupport.entity.bean;

import java.util.ArrayList;
import java.util.List;

import com.nwpu.coursesupport.enumeration.FileType;

public class Files {
	private List<FileItem> files=new ArrayList<FileItem>();

	public List<FileItem> getFiles() {
		return files;
	}

	public void setFiles(List<FileItem> files) {
		this.files = files;
	}
	
	
	
	@Override
	public String toString() {
		StringBuilder sb=new StringBuilder();
		for(FileItem f: files){
			sb.append(f.toString());
		}
		return sb.toString();
	}



	public static class FileItem{
		private String name;
		private String url;
		private FileType type;
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getUrl() {
			return url;
		}
		public void setUrl(String url) {
			this.url = url;
		}
		public FileType getType() {
			return type;
		}
		public void setType(FileType type) {
			this.type = type;
		}
		@Override
		public String toString() {
			return "FileItem [name=" + name + ", url=" + url + ", type=" + type + "]";
		}
		
	}
}


